package com.example.userclient

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.example.userclient.Main.ClientInfoHolder
import com.example.userclient.remote.Requester

class RemarkWorker(appContext: Context, workerParams: WorkerParameters):
        Worker(appContext, workerParams) {
    override fun doWork(): Result {

        // Do the work here--in this case, upload the images.

        ClientInfoHolder.phone?.let { Requester.apiService().getAllRemark(it) }
        Log.i("RemarkWorker", ClientInfoHolder.phone?:"null")
        // Indicate whether the work finished successfully with the Result
        return Result.success()
    }
}